package cn.cs.fallback;

import cn.cs.client.RepairBbsClient;
import cn.cs.common.Dto;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class RepairBbsFallBack implements RepairBbsClient {


    @Override
    public Integer getRepairBbsCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getRepairBbsListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getBbsImages(String id) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getReplyTree(String id) {
        return null;
    }

    @Override
    public Integer insertBbsByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer insertBbsImg(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Map<String, Object> getBbsById(String id) {
        return null;
    }

    @Override
    public Map<String, Object> getReplyById(String id) {
        return null;
    }

    @Override
    public Integer updateBbs(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer insertReply(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer updateBBSRecommend(Map<String, Object> param) throws Exception {
        return null;
    }
}
